package com.lbn.monitor.app.history.adapter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;

import com.lbn.monitor.R;
import com.lbn.monitor.api.model.DataCnItem;

import java.util.List;

import indi.free.widgets.custom_recycler_view.BaseRecyclerAdapter;
import indi.free.widgets.custom_recycler_view.RecyclerViewHolder;

/**
 * Created by 李炳南
 * 2017/3/6.
 */

public class TimeTypeAdapter extends BaseRecyclerAdapter<DataCnItem> {

    public TimeTypeAdapter(Context ctx, List<DataCnItem> list) {
        super(ctx, list);
    }

    @Override
    public int getItemLayoutId(int viewType) {
        return R.layout.layout_itme_popup_history;
    }

    @Override
    public void bindData(RecyclerViewHolder holder, int position, DataCnItem item) {
        holder.getTextView(R.id.content).setText(item.getName());
    }

}
